package Demo9;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-12-22
 * Time: 12:21
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String string = sc.next();
        String[] s = string.split(",");
        for (int i = 0; i < s.length; i++) {
            String s1[] = s[i].split("/");
            System.out.println(s1[2]+";");
        }
    }
}
